package com.ys.service.eKnowAi.impl;

import com.ys.entity.eKnowAi.EKnowChatLog;
import com.ys.mapper.eKnowAi.EKnowAiDiySqlMapper;
import com.ys.mapper.eKnowAi.EKnowChatLogMapper;
import com.ys.mapper.sys.SysMapper;
import com.ys.service.business.TbBaseInfoService;
import com.ys.service.eKnowAi.EKnowAiService;
import com.ys.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("eKnowAiService")
public class EKnowAiServiceImpl implements EKnowAiService {

	@Autowired
	private EKnowChatLogMapper eKnowChatLogMapper;
	@Autowired
	private EKnowAiDiySqlMapper eKnowAiDiySqlMapper;

	@Override
	public int addChatLog(EKnowChatLog eKnowChatLog) {
		int result = eKnowChatLogMapper.insert(eKnowChatLog);
		return result;
	}


	@Override
	public int updateChatLog(EKnowChatLog eKnowChatLog) {
		int result = eKnowAiDiySqlMapper.updateLogEvaluate(eKnowChatLog);
		return result;
	}
}
